﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 结构
{
    class Program
    {
        static void Main(string[] args)
        {
            Employee a = new Employee();

            a.read();

            Console.ReadKey();
        }

        struct Employee
        {
            // 字段，字段前面有个下划线
            String _name;
            int _age;
            float _salary;

            public void read()
            {
                Console.WriteLine("读书");
            }
            public void write()
            {
                Console.WriteLine("写作");
            }
        }
    }
}
